import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class ScreenDevice{

  /// 设备屏幕高度
  static double getDeviceHeight(BuildContext context) {
    return MediaQuery.of(context).size.height;
  }

  /// 设备屏幕宽度
  static double getDeviceWidth(BuildContext context) {
    return MediaQuery.of(context).size.width;
  }

  /// 设备顶部状态栏宽度
  static double getDeviceTopHeight(BuildContext context) {
    return MediaQuery.of(context).padding.top;
  }

  /// 设备底部Bar宽度
  static double getDeviceBottomHeight(BuildContext context) {
    return MediaQuery.of(context).padding.bottom;
  }
}